<HTML>
<HEAD>
<TITLE>Waciwo target</TITLE>
<STYLE TYPE="text/css">
.bold {font-weight:bold}
.ital {font-style:italic}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function highlight(evt) {
    var elem = (evt.target.nodeType == 3) ? evt.target.parentNode : evt.target
    if (elem.className == "bold") {
        document.styleSheets[0].cssRules[0].style.color = "red"
    } else {
        elem.style.color = "#FFCC00"
    }
}
function restore(evt) {
    var elem = (evt.target.nodeType == 3) ? evt.target.parentNode : evt.target
    if (elem.className == "bold") {
        document.styleSheets[0].cssRules[0].style.color = "black"
    } else {
        elem.style.color = "black"
    }
}
</SCRIPT>
</HEAD>
<BODY onMouseDown="highlight(event)" onMouseUp="restore(event)">
<H1>target Property</H1>
<HR>
<P>Jedna procedura obsugi zdarze...</P>
<UL>
<LI>Moe</LI>
<LI>Obsugiwa</LI>
<LI>Wiele</LI>
<LI>Obiektw</LI>
</UL>
<P>
Lorem ipsum dolor sit amet, consectetaur adipisicing elit, 
<SPAN CLASS="bold">sed do </SPAN>eiusmod tempor incididunt 
<SPAN CLASS="ital">ut labore et </SPAN>dolore magna aliqua. 
Ut enim adminim veniam, <SPAN CLASS="bold">quis nostrud 
exercitation </SPAN>ullamco laboris nisi ut aliquip ex ea 
<SPAN CLASS="bold">commodo consequat</SPAN>.
</P>
</BODY>
</HTML>